package proxy.extend;

import java.lang.reflect.Proxy;

public class IntermediaryJDKProxyFactory {
    public static <T> T create(Object target){
        return (T) Proxy.newProxyInstance(target.getClass().getClassLoader(), target.getClass().getInterfaces(),new IntermediaryInvocationHandler(target));
    }
}
